from flask import Flask
from views.user_bp import user_bp
from modle import db
def create_app(config):
    flask_app=Flask(__name__)
    flask_app.config.from_object(config)
    flask_app.register_blueprint(user_bp)
    db.init_app(flask_app)

    return flask_app
